# -*- coding: utf-8 -*-
# File : user.py
# Author: taoyahui
# Date : 2021/10/17

from config import db


class User(db.Model):
    __tablename__ = 'l_user'
    username = db.Column(db.String, primary_key=True)
    password = db.Column(db.String)
    company_name = db.Column(db.String)
    company_address = db.Column(db.String)
    role = db.Column(db.Integer)
    location = db.Column(db.String)
    bussiness_scope = db.Column(db.String)
    def __init__(self, username, password, company_name, company_address, role, location,bussiness_scope):
        self.username = username
        self.password = password
        self.company_name = company_name
        self.company_address = company_address
        self.role = role
        self.location = location
        self.bussiness_scope = bussiness_scope
